import { Injectable } from '@angular/core';
import { HttpClientService } from 'app/services/http-client.service';

@Injectable()
export class InfoService {

    constructor(
        public httpClient: HttpClientService
    ) { }
    // 查询单个组合基础信息
    GetSingleProduct(nFundNo) {
        return this.httpClient.get('/pms/v1/pension/basicInfo/pensionBasic/' + nFundNo);
    }

    // 编辑组合基础信息
    oldageEditProduct(putBody) {
        return this.httpClient.put('/pms/v1/pension/basicInfo/updatePension/', putBody);
    }
    // 创设新组合
    oldageAddProduct(postBody) {
        return this.httpClient.post('/pms/v1/pension/basicInfo/insertPension/', postBody);
    }
    // 投资经理
    getManagerList() {
        return this.httpClient.get('/pms/v1/common/manager/getProjectManager');
    }

    //项目经理
    getProjectManagerList() {
        return this.httpClient.get('/pms/v1/common/manager/getInstitutions');
    }
    // 获取备案机构、受托人、托管人下拉框值
    getDictionary() {
        return this.httpClient.get('/pms/v1/common/dict/getStrustee?sFundType=7');
    }
}